package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * <p>
 *
 * </p>
 *
 * @author wgc
 * @since 2023-09-13
 */
@Getter
@Setter
@TableName("goods")
@ApiModel(value = "goods", description = "")
public class Goods {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("商品名称")
    private String name;

    @ApiModelProperty("价格")
    private BigDecimal price;

    @ApiModelProperty("商品描述")
    private String description;

    @ApiModelProperty("单位")
    private String unit;

    @ApiModelProperty("库存")
    private Integer store;

    @ApiModelProperty("图片")
    private String img;

    @ApiModelProperty("上架时间")
    private String time;

    @TableField(exist = false)
    private Integer num;


}
